package com.example.websocketclusterspringbootstarter.handler;

import com.corundumstudio.socketio.SocketIOClient;
import com.example.websocketclusterspringbootstarter.event.BaseEventWrapper;

/**
 * 统一的handler
 *
 * @author zhucc
 * @date 2022-03-08
 */
public interface EventHandler {

    void preHandle(SocketIOClient client);

    void doHandle(SocketIOClient client, BaseEventWrapper baseEventWrapper);

    void afterHandle(SocketIOClient client);

}
